package com.yeqiangwei.commons.mail;

public class MailConfig implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1524742269856544117L;

	private String smtpAccount = "";	
	private String smtpPassword = "";
	private String smtpServer = "";
	private String smtpPort = "";
	private boolean smtpNeedPassword = true;
	private boolean smtpNeedSSL = false;
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("smtpServer:");
		sb.append(smtpServer);
		sb.append(", smtpPort:");
		sb.append(smtpPort);
		sb.append(", smtpAccount:");
		sb.append(smtpAccount);
		sb.append(", smtpPassword:");
		sb.append(smtpPassword);
		sb.append(", smtpNeedPassword:");
		sb.append(smtpNeedPassword);
		sb.append(", smtpNeedSSL:");
		sb.append(smtpNeedSSL);
		return sb.toString();
	}

	public String getSmtpAccount() {
		return smtpAccount;
	}

	public void setSmtpAccount(String smtpAccount) {
		this.smtpAccount = smtpAccount;
	}

	public String getSmtpPassword() {
		return smtpPassword;
	}

	public void setSmtpPassword(String smtpPassword) {
		this.smtpPassword = smtpPassword;
	}

	public String getSmtpServer() {
		return smtpServer;
	}

	public void setSmtpServer(String smtpServer) {
		this.smtpServer = smtpServer;
	}

	public String getSmtpPort() {
		return smtpPort;
	}

	public boolean getSmtpNeedPassword() {
		return smtpNeedPassword;
	}

	public void setSmtpNeedPassword(boolean smtpNeedPassword) {
		this.smtpNeedPassword = smtpNeedPassword;
	}

	public boolean getSmtpNeedSSL() {
		return smtpNeedSSL;
	}

	public void setSmtpNeedSSL(boolean smtpNeedSSL) {
		this.smtpNeedSSL = smtpNeedSSL;
	}

	public void setSmtpPort(String smtpPort) {
		this.smtpPort = smtpPort;
	}

}
